package edu.zut.pioneer.member.domain;

import edu.zut.pioneer.base.domain.BaseTree;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="member_type")

public class MemberType extends BaseTree<MemberType,Long> {

    @Column(name="name")
    private String name;
    @Column(name="status")
    private long status;


    public MemberType(){}

    public MemberType(String name, long status) {
        this.name = name;
        this.status = status;
    }

    @Override
    public String toString() {
        return "MemberType{" +"name='" + name + '\'' + ", status='" + status +'}';
    }

    public String getName() {
        return name;
    }

    public long getStatus() {
        return status;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setStatus(long status) {
        this.status = status;
    }
}
